import i18n from '@/i18n/i18n'
/**
 * type   1 客户 2 商机 3 合同 4 回款 5 跟进记录
 *
 * 表头数据
 * 客户：客户名称、成交状态、最后跟进时间、创建时间、负责人
 * 商机：商机名称、商机阶段、最后跟进时间、创建时间、负责人
 * 合同：合同名称、合同状态、创建时间、公司签约人
 * 回款：回款编号、回款时间、负责人
 */
export function getReportFieldList(type) {
  return {
    customer: [
      {
        label: i18n.t('oa.workLog.71dd5c9911130f2216105dfad64926bf'),
        prop: 'customerName'
      },
      {
        label: i18n.t('oa.workLog.85250524d28ecd69a88325c28fb535b3'),
        prop: 'dealStatus'
      },
      {
        label: i18n.t('oa.workLog.ca544e4566b01311eb745fc1e94171cc'),
        prop: 'lastTime'
      },
      {
        label: i18n.t('oa.workLog.ad16d855ba09601e5e4ae6cf9dd5383a'),
        prop: 'createTime'
      },
      {
        label: i18n.t('oa.workLog.a93a7552374a0406f3c4986be24e4b9d'),
        prop: 'ownerUserName'
      }
    ],
    business: [
      {
        label: i18n.t('oa.workLog.8eb3234c4330bcb2a2e54718b48f222c'),
        prop: 'businessName'
      },
      {
        label: i18n.t('oa.workLog.a5100a0ba59137985111ba7da5b3b4c7'),
        prop: 'statusName'
      },
      {
        label: i18n.t('oa.workLog.32e61a8d0020dde8637d715494490f1a'),
        prop: 'lastTime'
      },
      {
        label: i18n.t('oa.workLog.411889f7ee41b8489086bdcdf1ad88ae'),
        prop: 'createTime'
      },
      {
        label: i18n.t('oa.workLog.7c3c6d557fdb9a37a41968804473732b'),
        prop: 'ownerUserName'
      }
    ],
    contract: [
      {
        label: i18n.t('oa.workLog.c472c167d79ef6d20f80643db26c9420'),
        prop: 'name'
      },
      {
        label: i18n.t('oa.workLog.76a998a575a62925d01d39a03f676b7a'),
        prop: 'checkStatus'
      },
      {
        label: i18n.t('oa.workLog.ce990859fc546d6d82b668b634538947'),
        prop: 'createTime'
      },
      {
        label: i18n.t('oa.workLog.60091f930cd945b69819ae04c9edcde1'),
        prop: 'companyUserName'
      }
    ],
    receivables: [
      {
        label: i18n.t('oa.workLog.77a92d0134f8f96068d59223389c8b3b'),
        prop: 'number'
      },
      {
        label: i18n.t('oa.workLog.ffe0d04aa731e043b10c374375705020'),
        prop: 'returnTime'
      },
      {
        label: i18n.t('oa.workLog.66b95c2a27268d6bce2e837da780d92d'),
        prop: 'ownerUserName'
      }
    ]
  }[type]
}
